package com.orphan.marketFront.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用作在主菜单显示商品
 * </p>
 *
 * @author orphan
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_goods")
public class Goods extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "goodsId", type = IdType.AUTO)
    private Integer goodsId;

    @TableField("goodsName")
    private String goodsName;

    @TableField("goodsType")
    private String goodsType;

    @TableField("goodsPrice")
    private Integer goodsPrice;

    @TableField("goodsNum")
    private Integer goodsNum;

    @TableField("goodsInfo")
    private String goodsInfo;

    @TableField("goodsPic")
    private String goodsPic;

    /**
     * 0-下架状态；1-上架状态
     */
    @TableField("goodsTag")
    private Integer goodsTag;

    /**
     * 0-正常状态；1-促销状态
     */
    @TableField("promotion")
    private Integer promotion;

}
